/**
 * 
 */
package sv.gob.mtps.hr.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import sv.gob.mtps.hr.dao.EmpleadoXCatParentescoDAO;
import sv.gob.mtps.hr.model.CatParentesco;
import sv.gob.mtps.hr.model.CatPorcentajeBeneficio;
import sv.gob.mtps.hr.model.EmpParentVw;
import sv.gob.mtps.hr.model.SferhEmpleadoXCatParentesco;

/**
 * @author julio.perez
 *
 */
@Service
public class EmpleadoXCatParentescoServiceImpl implements
		EmpleadoXCatParentescoService {
	
	@Autowired
	EmpleadoXCatParentescoDAO empleadoXCatParentescoDAO;

	/* (non-Javadoc)
	 * @see sv.gob.mtps.hr.service.EmpleadoXCatParentescoService#addParent(sv.gob.mtps.hr.model.SferhEmpleadoXCatParentesco)
	 */
	@Transactional
	public void addParent(SferhEmpleadoXCatParentesco parent) {
		empleadoXCatParentescoDAO.addParent(parent);

	}

	/* (non-Javadoc)
	 * @see sv.gob.mtps.hr.service.EmpleadoXCatParentescoService#updateParent(sv.gob.mtps.hr.model.SferhEmpleadoXCatParentesco)
	 */
	@Transactional
	public void updateParent(SferhEmpleadoXCatParentesco parent) {
		empleadoXCatParentescoDAO.updateParent(parent);

	}

	/* (non-Javadoc)
	 * @see sv.gob.mtps.hr.service.EmpleadoXCatParentescoService#listParent()
	 */
	@Transactional
	public List<SferhEmpleadoXCatParentesco> listParent() {
		// TODO Auto-generated method stub
		return empleadoXCatParentescoDAO.listParent();
	}

	/* (non-Javadoc)
	 * @see sv.gob.mtps.hr.service.EmpleadoXCatParentescoService#removeParent(java.lang.Integer)
	 */
	@Transactional
	public void removeParent(Integer id) {
		empleadoXCatParentescoDAO.removeParent(id);

	}

	@Transactional
	public List<CatParentesco> listParentesco() {
		// TODO Auto-generated method stub
		return empleadoXCatParentescoDAO.listParentesco();
	}

	@Transactional
	public List<CatPorcentajeBeneficio> listBeneficio() {
		// TODO Auto-generated method stub
		return empleadoXCatParentescoDAO.listBeneficio();
	}

	@Transactional
	public List<EmpParentVw> listParent(Integer id) {
		// TODO Auto-generated method stub
		return empleadoXCatParentescoDAO.listParent(id);
	}

}
